import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/layout'
import layout from '../views/layout'

Vue.use(VueRouter)

const router = [
    {
        path: '/login',
        name: 'Login',
        component: login
    },
    {
        path: '/layout',
        name: 'Layout',
        component: layout
    },
    {
        path:'/',
        redirect:'login'
    }
]

const router = new VueRouter({
    router
})

export default router